package com.note.simpleadmin.module.shop.dao;
import com.note.simpleadmin.entity.TbCoupon;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/***
 *@ClaseName:CouponRepository
 *
 *@Decription:
 *
 *@Author: xubingbing
 *
 *@Date:2019/2/28 0028 19:34
 */
public interface CouponRepository extends JpaRepository<TbCoupon, String>, JpaSpecificationExecutor<TbCoupon> {
    TbCoupon findByIdAndIsDelete(String id,Integer isDelete);
    TbCoupon findByCodeAndIsDelete(String code,Integer isDelete);
}
